GenAI Utils | Add _BaseAgent base class and agent creation lifecycle#4217
GenAI Utils | Add _BaseAgent base class and agent creation lifecycle#4217etserend wants to merge 13 commits into
Conversation
e8e9669 to
bbcbded
Compare
8022213 to
0b3acb8
Compare
0b3acb8 to
0c23956
Compare
|
|
||
| # ---- Agent lifecycle ---- | ||
|
|
||
| def start_agent( |
There was a problem hiding this comment.
Will refactor as needed
wrisa
left a comment
There was a problem hiding this comment.
LGTM. Though would need refractoring in case other PRs mentioned in comments are merged first.
|
Verified the Demo PR: #4336 Steps exercised:
|
Cirilla-zmh
left a comment
There was a problem hiding this comment.
LGTM. But it's suggested to get #4219 merged first.
|
Are you still working on this? Looks like there were some additions to genai-utils that you might have to rebase on. |
|
thanks for the contribution @etserend ! We're moving GenAI instrumentations to the new repository - https://github.com/open-telemetry/opentelemetry-python-genai. I'm closing this PR here, but you're welcome to reopen it in the new repo. |
Description
The GenAI Utils package includes boilerplate and helpers to standardize instrumentation for Generative AI.
This PR adds the foundational agent type hierarchy and creation lifecycle. It provides a shared
_BaseAgentbase class and anAgentCreationtype, along withTelemetryHandlermethods to start, stop, and fail agent creation spans — aligned with the GenAI agent span semantic conventions.Agent invocation type (
invoke_agent), metrics, and events to come in follow-up PRs.Type of change
How Has This Been Tested?
AgentCreationDoes This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.